using System;
using Common.Util;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;

namespace Authentication.Model.Model
{
    public partial class ApplicationGroup
    {
        public ApplicationGroup()
        {
            Accounts = new HashSet<Account>();
        }
        [NotMapped]
        public Guid GuidKey { get { return new Guid(this.ApplicationKey); } }

        [NotMapped]
        public bool IsActive { get { return Active.IsYes(); } }

        public ICollection<Account> Accounts { get; set; }
    }
}
